package com.trendata.domain;

import java.sql.Timestamp;

/**
 * 存储用户保存的图片
 * 
 * @author: HuangXiuXiu Email:243559392@qq.com
 */
public class Image {
	/**
	 * 状态：公开
	 */
	public static final int STATE_PUBLIC = 1;

	/**
	 * 状态：私密
	 */
	public static final int STATE_PRIVATE = 2;

	/**
	 * 被展示
	 */
	public static final int STATE_SHOW = 3;

	private long id;// 图片id
	private String userOpenId;// 用户openid
	private long shopOpenId;// 店铺openId
	private String url;// 图片存储地址
	private int state = 1;// 状态。1：公开2：私密
	private Timestamp createTime;// 创建时间

	// 统计数据
	private boolean isLiked;// 当前用户是否喜欢
	private int likeNum;// 点赞数量
	private int commentNum;// 评论数量

	public int getCommentNum() {
		return commentNum;
	}

	public void setCommentNum(int commentNum) {
		this.commentNum = commentNum;
	}

	public boolean isLiked() {
		return isLiked;
	}

	public void setLiked(boolean isLiked) {
		this.isLiked = isLiked;
	}

	public int getLikeNum() {
		return likeNum;
	}

	public void setLikeNum(int likeNum) {
		this.likeNum = likeNum;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getUserOpenId() {
		return userOpenId;
	}

	public void setUserOpenId(String userOpenId) {
		this.userOpenId = userOpenId;
	}

	public long getShopOpenId() {
		return shopOpenId;
	}

	public void setShopOpenId(long shopOpenId) {
		this.shopOpenId = shopOpenId;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

}
